# DNS_Blocklist_Launcher

Simple Launcher for [DNS_Blocklist Script](https://github.com/sfeakes/ipfire-scripts) with additional features.

Main reason for this launcher was to break down the commandline in fcrontab from:
```
%daily * * bash /<path-to>/dns_blocklist.sh -s 1,2,3,5,7,8,12,13,14,"https://easylist.to/easylistgermany/easylistgermany.txt","https://easylist.to/easylist/easyprivacy.txt","https://easylist.to/easylist/fanboy-social.txt","https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win7/extra.txt","https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/win7/spy.txt" -b ~/bin/blacklist.hosts -r 0.0.0.0
```
to clearly arranged:
```
%daily * * bash /<path-to>/dnsbl_launcher.sh
```

## Requirements ##
This launcher requires the DNS Blocklist script by sfeakes be copied into a subfolder "dns".

The script can be download from here: [dns_blocklist.sh](https://github.com/sfeakes/ipfire-scripts/blob/master/dns_blocklist.sh)

## Additional features ##

- add custom sources via source-file (instead of commandline argument)
- list current blocklist
- Search (grep-search) in blocklist, 
- list current source list.

## Usage
Start the launcher without option for normal usage.

**Output of `dnsbl_launcher.sh --help` :**
```
Usage: dnsbl_launcher.sh [OPTION]
Launcher for DNS Blocklist Script (by sfeakes)

Options:
  -ls, --sourcelist           List sources
  -lb, --blocklist search     List and search unbound conf
  -ll, --logfile              List log
  -h,  --help                 Show this help
```
Sourcelist, Blacklists, Whitelists are expected in the same subfolder "dns". Edit the launcher to change pathes and fit your needs.

### Documentation
See README of [ipfire-scripts](https://github.com/sfeakes/ipfire-scripts#ipfire-scripts) and 
Article on [Kuketz-Blog](https://www.kuketz-blog.de/dns-adblocker-skript-fuer-ipfire-ipfire-teil2/)

## Change log

v0.2 (2018-02-11)
- initial commit
